//
//  EMNewContentCell.m
//  ElectronicMall
//
//  Created by 史伟文 on 14/12/22.
//  Copyright (c) 2014年 cczu. All rights reserved.
//

#import "EMNewContentCell.h"

@implementation EMNewContentCell
- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
        NSArray *arrayOfViews = [[NSBundle mainBundle] loadNibNamed:@"EMNewContentCell" owner:self options: nil];
        if(arrayOfViews.count < 1){
            return nil;
        }
        if(![[arrayOfViews objectAtIndex:0] isKindOfClass:[UICollectionViewCell class]]){
            return nil;
        }
        self = [arrayOfViews objectAtIndex:0];
    }
    return self;
}
- (void)awakeFromNib {
    // Initialization code
    self.goodImageView.frame = CGRectMake(W(10), H(8), W(125), W(125));
    self.goodNameLabel.frame = CGRectMake(W(10), H(160), W(131), H(21));
    self.goodDescLabel.frame = CGRectMake(W(10), H(180), W(79), H(21));
    self.priceLabel.frame = CGRectMake(W(10), H(210), W(53), H(21));
    self.originPriceLabel.frame = CGRectMake(W(62), H(216), W(43), H(21));
    self.addToCart.frame = CGRectMake(W(111), H(211), W(30), H(30));
}

@end
